<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{patientmsgs['navigation.back']}" action="/jsf/patient/viewPatient.xhtml"/>
		
			<p:panel header="#{patientmsgs['rendezvous.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{patientmsgs['rendezvous.rdvrendezvous.title']}:*" />
							<h:outputText value="#{PatientComponent.rendezvouses.rdvRendezVous}"/>
					<h:outputText value="#{patientmsgs['rendezvous.rdvtiers.title']}:" />
							<h:inputText id="patient_rdvtiers" value="#{PatientComponent.rendezvouses.rdvTiers}" required="false" label="patient_rdvtiers" />
					<h:outputText value="#{patientmsgs['rendezvous.rdvspecialite.title']}:" />
							<h:inputText id="patient_rdvspecialite" value="#{PatientComponent.rendezvouses.rdvSpecialite}" required="false" label="patient_rdvspecialite" />
					<h:outputText value="#{patientmsgs['rendezvous.rdvdate.title']}:" />
							<p:calendar id="patient_rdvdate" value="#{PatientComponent.rendezvouses.rdvDate}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{patientmsgs['rendezvous.rdvadmission.title']}:" />
							<h:inputText id="patient_rdvadmission" value="#{PatientComponent.rendezvouses.rdvAdmission}" required="false" label="patient_rdvadmission" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{patientmsgs['navigation.save']}" action="#{PatientComponent.savePatientRendezVouses(PatientComponent.patient.patPatient, PatientComponent.rendezvouses)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>